package com.invengo.library_rfid.analyze.utils.uhf.formatHelp;

import com.invengo.library_rfid.analyze.utils.uhf.entity.STORED_MARK;

public class COID {
    // Fields
    private int _OID_Index;
    private String _OID_Name;
    private int _OID_Length;
    private boolean _stored;
    private STORED_MARK _stored_mark;
    private Object _OID_Value;

    // Properties
    public int getOID_Index() {
        return _OID_Index;
    }

    public void setOID_Index(int _OID_Index) {
        this._OID_Index = _OID_Index;
    }

    public String getOID_Name() {
        return _OID_Name;
    }

    public void setOID_Name(String _OID_Name) {
        this._OID_Name = _OID_Name;
    }

    public int getOID_Length() {
        return _OID_Length;
    }

    public void setOID_Length(int _OID_Length) {
        this._OID_Length = _OID_Length;
    }

    public boolean isStored() {
        return _stored;
    }

    public void setStored(boolean _stored) {
        this._stored = _stored;
    }

    public Object getOID_Value() {
        return _OID_Value;
    }

    public void setOID_Value(Object _OID_Value) {
        this._OID_Value = _OID_Value;
    }

    public STORED_MARK getStored_mark() {
        return _stored_mark;
    }

    public void setStored_mark(STORED_MARK _stored_mark) {
        this._stored_mark = _stored_mark;
    }

    // Constructors
    public COID(int index, String name) {
        _OID_Index = index;
        _OID_Name = name;
        _stored_mark = STORED_MARK.USER;
        _stored = false;
        _OID_Length = 2;
        _OID_Value = null;
    }

    public COID(int index, String name, STORED_MARK storedmark, boolean bstored) {
        _OID_Index = index;
        _OID_Name = name;
        _stored_mark = storedmark;
        _stored = bstored;
        _OID_Length = 2;
        _OID_Value = null;
    }

    @Override
    public String toString() {
        return "COID{" +
                "_OID_Index=" + _OID_Index +
                ", _OID_Name='" + _OID_Name + '\'' +
                ", _OID_Length=" + _OID_Length +
                ", _stored=" + _stored +
                ", _stored_mark=" + _stored_mark +
                ", _OID_Value=" + _OID_Value +
                '}';
    }
}